package com.bing.controller.task;

import com.bing.task.google.Search;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by kaibb on 15-11-26.
 */

@Controller
public class SearchGoogle {

    private static final Logger LOGGER = LoggerFactory.getLogger(SearchGoogle.class);

    @RequestMapping("task/google")
    @ResponseBody
    public String google() {
        LOGGER.info("Trigger search google host task.");
        Search.start();
        return "Searching...........................";
    }
}
